﻿using System;
using System.Collections.Generic;
using System.Linq;

using Recon.Portal.DataObjects;
using Recon.Portal.Data;

namespace Recon.Portal.Business
{
    public class RemitterEntity
    {
        #region: Public Constructor
        public RemitterEntity()
        {

        }
        #endregion

        #region: Public Methodss
        public int Add(Remitter remitter, string userID)
        {
            return (new DBFactory()).AddRemitter(remitter, userID);
        }

        public int ModifyRemitter(Remitter remitter, string userID)
        {
            return (new DBFactory()).ModifyRemitter(remitter, userID);
        }

        public List<Remitter> GetRemitterDetailsByRemitterId(string remitterID, string customerID)
        {
            return (new DBFactory()).GetRemitterDetailsByRemitterId(remitterID, customerID);
        }

        public List<Remitter> GetRemitterIdForMatchingCriteria(string customerId)
        {
            return (new DBFactory()).GetRemitterIdForMatchingCriteria(customerId);
        }
        public List<Remitter> GetRemitterDetails(string RemitterId, string CustomerId)
        {
            return (new DBFactory()).GetRemitterDetails(RemitterId, CustomerId);
        }

        public List<Remitter> GetRemitter(string remitterId)
        {
            return (new DBFactory()).GetRemitter(remitterId);
        }
		public List<Remitter> GetUnauthorizedRemitters(string UserId)
        {
            return (new DBFactory()).GetUnauthorizedRemitters(UserId);
        }

        public int AuthorizeRemitters(string userID, string remitterId)
        {
            return (new DBFactory()).AuthorizeRemitters(userID, remitterId);
        }

        public int DeleteRemitter(String RemitterID, String CustomerID)
        {
            return (new DBFactory()).DeleteRemitter(RemitterID,CustomerID);
        }
        #endregion
    }
}